import request from "@/utils/request";

export const login = (param) => {
    return request({
        url: '/business_account/business_login_by_sms',
        method: 'post',
        data: param
    })
}

// 图形api
export const getCaptcha = () => {
  return request({
    url: '/business_account/business_captcha',
    method: 'post',
  })
} 
// 
export const getPhoneCode = (data) => {
  return request({
    url: '/business_account/login_send_sms',
    method: 'post',
    data: data
  })
};

export const loginout = (data) => {
  return request({
    url: '/api/admin/loginOut',
    method: 'post',
    data: data
  })
}